//业务逻辑数据开始
function AE9899_src_repstr_biz_start(inputparam) {
	layer.close(ly_index);
	AE9899_init_Inpurt();
    /*biz begin*/
}

function AE9899_init_Inpurt(){
	var v1 = "d:\\abc\\web1\r\nd:\\abc\\web2";
	var v2 = "d:\\abc\\web1\\js\r\nd:\\abc\\web1\\css";
	var v3 = "var strHex = \"AB12H3\";\r\nfunction getxxxx(){\r\n\r\n}";
	var v5 = "function getxxxx(){\r\n\t var defv = \"112233....\";\r\n}";
	var v6 = "d:\\abc\\web1\\html\\test.html\r\nd:\\abc\\web1\\css\\ind.css";
	$("#AE9899_param_value1").val(v1);
	$("#AE9899_param_value2").val(v2);
	$("#AE9899_param_value3").val(v3);
	$("#AE9899_param_value4").val("3");
	$("#AE9899_param_value5").val(v5);
	$("#AE9899_param_value6").val(v6);
}

$("#AE9899_btnDebug").click(function () {
	$("#AE9899_debug_result").val("");
	swal({
        title: "告警",
        text: "是否替换文件内容,替换将无法恢复",
        type: "warning",
        showCancelButton: true,
        confirmButtonColor: "#DD6B55",
        confirmButtonText: "确定",
        closeOnConfirm: false
    	},
        function () {
        ly_index = layer.load();
        var inputdata = {
        	"param_name": "A01_REPSTR",
        	"session_id": session_id,
        	"login_id": login_id,
        	"param_value1":s_encode($("#AE9899_param_value1").val()),
        	"param_value2":s_encode($("#AE9899_param_value2").val()),
        	"param_value3":s_encode($("#AE9899_param_value3").val()),
        	"param_value4":s_encode($("#AE9899_param_value4").val()),
        	"param_value5":s_encode($("#AE9899_param_value5").val()),
        	"param_value6":s_encode($("#AE9899_param_value6").val()),
        };
        ly_index = layer.load();
        get_ajax_staticurl(inputdata, "AE9899_get_A01_REPSTR");
    });
});


//文本文件内容替换,源码批量替换
function AE9899_get_A01_REPSTR(input){
	layer.close(ly_index);
	//查询失败
	if (Call_OpeResult(input.A01_REPSTR) == false)
		return false; 
	$("#AE9899_debug_result").val(s_decode(JSON.stringify(input)))
}